﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="UserDeviceInfo.aspx.cs" Inherits="System_Mobile_UserDeviceInfo" Culture="auto"
    meta:resourcekey="Title" UICulture="auto" %>

<%@ Register  Src="~/UserControl/DataPager.ascx" TagName="DataPager" TagPrefix="ctl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .scrollDiv
        {
            height: 291px;
            padding: 0px;
            margin: 0px;
            text-align: center;
            vertical-align: top;
            overflow-y: auto;
            overflow-x: hidden;
        }
        .clsSearch
        {
            background: url(../../Resources/images/Search.gif);
            width: 22px;
            border: none;
            cursor: pointer;
        }
        table
        {
            width: 95%;
            text-align: center;
        }
        .clsTdLeft
        {
            text-align: left;
            height: 35px;
        }
        input
        {
            width: 120px;
        }
    </style>

    <script language="javascript" type="text/javascript">
// <!CDATA[

        // 文本框失去焦点时，去除前后空格
//        $(document).ready(function() {
//            $("input[type='text']").blur(function() { this.value = this.value.trim(); }); 
//        });
// ]]>
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
    </asp:ScriptManagerProxy>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" RenderMode="Inline">
        <ContentTemplate>
            <div class="accordion" style="width: 800px;">
                <h3>
                    <asp:Literal ID="Literal2" runat="server" meta:resourcekey="DistributiveDevice" />
                </h3>
                <div style="text-align: center;">
                    <table>
                        <tr>
                            <td>
                                <asp:GridView ID="gvResult" runat="server" AllowPaging="True" CssClass="datalist"
                                    Width="100%" PageSize="3" AutoGenerateColumns="False" OnRowDataBound="gvResult_RowDataBound"
                                    OnRowCommand="gvResult_RowCommand" OnPageIndexChanging="PageIndexChanged" OnRowDeleting="gvResult_RowDeleting">
                                  
                                    <Columns>
                                        <asp:BoundField DataField="IMEICode" HeaderText="IMSI" />
                                       <%-- <asp:BoundField DataField="BrandName" meta:resourcekey="HeaderPhone" />
                                        <asp:BoundField DataField="Modle" meta:resourcekey="EmpName" />--%>
                                       <%-- <asp:BoundField DataField="Code" meta:resourcekey="EmpCode" />--%>
                                        <asp:TemplateField meta:resourcekey="HeaderControl">
                                            <ItemTemplate>
                                                <asp:Button ID="btnDelete" class="but" meta:resourcekey="Delete" runat="server" />
                                            </ItemTemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <PagerTemplate>
                                
                                <ctl:DataPager ID="DataPager1" runat=server />
                             </PagerTemplate>
                                </asp:GridView>
                               
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="accordion" style="width: 800px;">
                <h3>
                    <asp:Literal ID="Literal1" runat="server" meta:resourcekey="UndistributiveDevice" />
                </h3>
                <div style="text-align: center;">
                    <table>
                        <tr>
                            <td width="30%">
                                <asp:Literal ID="Literal3" runat="server" meta:resourcekey="LabelEmployee"></asp:Literal>
                                <input id="txtUser" type="text" runat="server" value="OA用户" maxlength="32" />
                                <asp:Button ID="btnSearchUser" runat="server" class="clsSearch" OnClick="btnSearchUser_Click" />
                            </td>
                            <td class="clsTdLeft">
                                <asp:DropDownList ID="ddlUser" runat="server" Width="80%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Literal ID="Literal4" runat="server" meta:resourcekey="LabelPhone"></asp:Literal>
                                <input id="txtMobile" type="text" runat="server" maxlength="32" />
                                <asp:Button ID="btnSearchMobile" runat="server" class="clsSearch" OnClick="btnSearchMobile_Click" />
                            </td>
                            <td class="clsTdLeft">
                                <asp:DropDownList ID="ddlMobile" runat="server" Width="80%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <asp:Literal ID="Literal5" runat="server" meta:resourcekey="LabelDevice"></asp:Literal>
                                <input id="txtSIM" type="text" runat="server" maxlength="32" />
                                <asp:Button ID="btnSearchSIM" runat="server" class="clsSearch" OnClick="btnSearchSIM_Click" />
                            </td>
                            <td class="clsTdLeft">
                                <asp:DropDownList ID="ddlSIM" runat="server" Width="80%">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" style="text-align: right; padding-right: 30px">
                                <asp:Button ID="btnOK" CssClass="but" runat="server" meta:resourcekey="Distribute"
                                    OnClick="btnOK_Click" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <%--<div style="display:none">
    <input id="txtSimId" type="text" runat="server" />
    <input id="txtMobileId" type="text" runat="server" />
    <input id="txtUserId" type="text" runat="server" />
</div>   --%>
        </ContentTemplate>
        <Triggers>
            <asp:AsyncPostBackTrigger ControlID="btnSearchSIM" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSearchMobile" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnSearchUser" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="btnOK" EventName="Click" />
            <asp:AsyncPostBackTrigger ControlID="gvResult" EventName="RowCommand" />
            <asp:AsyncPostBackTrigger ControlID="gvResult" EventName="RowDeleting" />
        </Triggers>
    </asp:UpdatePanel>
</asp:Content>
